package com.snowball.demo.exception;

import lombok.Data;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author Gene
 *         on 2016/12/4
 */
@Data
public class BusinessException extends RuntimeException {

    private Logger log = LoggerFactory.getLogger(BusinessException.class);

    private String code;
    private String message;

    public BusinessException(String message) {
        super(message);
        this.message = message;
    }

    public BusinessException(String code, String message) {
        this.code = code;
        this.message = message;
    }
}
